<?php
$id = isset($_GET['id'])?$_GET['id']:'cctv2';
$n = array(
'cctv2' => 265667329, // 'cctv2
'cctv3' => 265667206, // 'cctv3
'cctv4' => 265667639, // 'cctv4
'cctv4o' => 265667313, // 'cctv4欧洲
'cctv4a' => 265667335, // 'cctv4美洲
'cctv6' => 265667482, // 'cctv6
'cctv7' => 265667268, // 'cctv7
'cctv8' => 265667466, // 'cctv8
'cctv9' => 265667202, // 'cctv9
'cctv10' => 265667631, // 'cctv10
'cctv11' => 265667429, // 'cctv11
'cctv12' => 265667607, // 'cctv12
'cctv13' => 265667474, // 'cctv13
'cctv14' => 265667325, // 'cctv14
'cctv15' => 265667535, // 'cctv15
'cctv17' => 265667526, // 'cctv17

'hjjc' => 265218786, // 'cctv怀旧剧场
'dyjc' => 265219045, // 'cctv第一剧场
'fyjc' => 265219017, // 'cctv风云剧场
'fyzq' => 265218963, // 'cctv风云足球
'sjdl' => 265218983, // 'cctv世界地理
'nxss' => 265218844, // 'cctv女性时尚
'ystq' => 265219049, // 'cctv央视台球
'gefwq' => 265219069, // 'cctv高尔夫网球
'whjp' => 265218995, // 'cctv央视文化精品

'cgtnjl' => 265218920, //CGTN纪录
'cgtnf' => 265219025, //CGTN法语
'cgtne' => 265218872, //CGTN西班牙语
'cgtna' => 265219154, //CGTN阿拉伯语
'cgtnr' => 265218806, //CGTN俄语

'cetv1' => 265218798, //CETV1
'cetv2' => 265218866, //CETV2
'cetv3' => 265218999, //CETV3
'cetv4' => 265218938, //CETV4

'chcdzdy' => 265218967, //CHC动作电影
'chcjtyy' => 265667645, //CHC家庭影院

'jsws' => 264104188, //江苏卫视
'gdws' => 263541274, //广东卫视
'hubws' => 264098936, //湖北卫视
'hljws' => 264099029, //黑龙江卫视
'lnws' => 265669068, //辽宁卫视
'hbws' => 262870102, //河北卫视
'gzws' => 265219305, //贵州卫视
'nfws' => 265218882, //南方卫视
'sxws' => 263793399, //山西卫视
'dnws' => 263099350, //东南卫视
'ynws' => 263541059, //云南卫视
'jxws' => 263907244, //江西卫视
'gxws' => 265219361, //广西卫视
'xzws' => 265218979, //西藏卫视
'scws' => 263907130, //四川卫视
'gsws' => 262659100, //甘肃卫视
'cqws' => 263793343, //重庆卫视
'xjws' => 262658063, //新疆卫视
'btws' => 262869946, //兵团卫视

'shdy' => 265667494, //四海钓鱼

'jsjy' => 265219146, //江苏教育

'sdjy' => 265218942, //山东教育卫视

'xfc' => 265667664, //幸福彩

'smsd' => 80891335, //数码时代

'hzzh' => 76680661, //杭州综合
'hzmz' => 76680568, //杭州明珠
'hzsh' => 76680574, //杭州生活
'hzys' => 76680745, //杭州影视
'hzse' => 76680756, //杭州少儿体育

'cibnjdjc' => 265218918, //CIBN经典剧场
'cibngzjc' => 265218888, //CIBN古装剧场
'cibnjyjc' => 265667441, //CIBN骄阳剧场
'cibnljsy' => 265219218, //CIBN流金岁月

'mgy+' => 140151866, //咪咕Y+
'ttmlh' => 265218759, //体坛名栏汇
'hjlp' => 265218774, //怀旧老片
'mrkhdy' => 265218790, //每日科幻电影
'cfpl' => 265218818, //乘风破浪的宁静
'stdrj' => 265218822, //神探狄仁杰
'jypd' => 265218834, //金庸频道
'ymyy' => 265218842, //杨幂影院
'sysmjc' => 265218858, //深夜失眠剧场
'gqdp' => 265218862, //高清大片
'dmffl' => 265218870, //盗墓方法论
'zjsn' => 265218878, //追剧少女
'zxcyy' => 265218902, //周星驰影院
'gnsnsk' => 265218906, //高能烧脑时刻
'sszjd' => 265218921, //赛事最经典
'xpfyt' => 265218930, //新片放映厅
'rjlb' => 265218955, //热剧联播
'aqgy' => 265218975, //爱情公寓
'mghjjc' => 265218987, //黄金剧场
'ysdyy' => 265219029, //云上电影院
'jljc' => 265219053, //军旅剧场
'sljc' => 265219082, //少林剧场,
'wjzpj' => 265219090, //吴京作品集,
'jdhsp' => 265667264, //经典贺岁片,
'gfcyy' => 265667309, //郭富城影院,
'xjlm' => 265667315, //喜剧联盟,
'jqjc' => 265667321, //假期剧场,
'gtlyy' => 265667331, //古天乐影院,
'hsdzjc' => 265667375, //红色谍战剧场,
'wxjc' => 265667392, //武侠剧场,
'sddh' => 265667399, //试胆大会,
'tvbjc' => 265667449, //TVB剧场,
'zrfyy' => 265667453, //周润发影院,
'jsjc' => 265667486, //僵尸剧场,
'hsyssk' => 265667487, //经典影视速看,
'gfyy' => 265667506, //高分影院,
'zgryy' => 265667510, //张国荣影院,
'ldhyy' => 265667522, //刘德华影院,
'glzpj' => 265667533, //古龙作品集,
'lyfys' => 265667549, //刘亦菲影视展播,
'clzpj' => 265667553, //成龙作品集,
'gyzpj' => 265667623, //葛优作品集,
'zqpd' => 291879018, //足球频道
);
$data = file_get_contents('http://aikanvod.miguvideo.com/video/p/live.jsp?user=guest&channel='.$n[$id]);
preg_match('/source src="(.*?)"/',$data,$playurl);
header('Location:'.$playurl[1]);
//echo $playurl[1];
?>